package com.ijunfu.detail.thread._01_Thread;

import lombok.extern.slf4j.Slf4j;

/**
 *
 * @Title  : 
 * @Author : ijunfu <ijunfu@163.com>
 * @Date   : 2023/11/23 16:39
 * @Version: 1.0
 * @Motto  : 世界很大 世界很小
 *
 */
@Slf4j
public class _03Main {

    public static void main(String[] args) {

        Thread t1 = new Thread(new Runnable() {
            @Override
            public void run() {
                 log.info("2. 子线程执行");
            }
        });
        log.info("1. 创建线程");
        t1.run();
        log.info("3.主线程执行结束");
    }
}
